package com.cssl.openFeign;

import com.cssl.domain.DtsAd;
import com.cssl.domain.dto.DtsAdDto;
import com.cssl.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "DtsShopProvider9090",path = "/promotion",contextId = "ad")
public interface DtsAdClient {
    @PostMapping("/listAd")
    public Result getlistAd(@RequestBody DtsAdDto dto);
    @PostMapping("/createAd")
    public Result createAd(@RequestBody DtsAd dto);
}
